package com.jrx.anytxn.param.transaction.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "batchconfig.anytxn")
public class AnytxnBatchConfigProperties {
    /**
     * 默认配置
     */
    private DefaultBatchConfig defaultConfig = new DefaultBatchConfig();

    /**
     * 文件还款
     */
    private DefaultBatchConfig fileRepayConfig= new DefaultBatchConfig(100, 0, 8, 50000);

    /**
     * 核心对账 作业配置
     */
    private DefaultBatchConfig batchBillCompareConfiguration = new DefaultBatchConfig(100, 0, 1, 1000);

    public DefaultBatchConfig getDefaultConfig() {
        return defaultConfig;
    }

    public void setDefaultConfig(DefaultBatchConfig defaultConfig) {
        this.defaultConfig = defaultConfig;
    }

    public DefaultBatchConfig getBatchBillCompareConfiguration() {
        return batchBillCompareConfiguration;
    }

    public void setBatchBillCompareConfiguration(DefaultBatchConfig batchBillCompareConfiguration) {
        this.batchBillCompareConfiguration = batchBillCompareConfiguration;
    }

    public DefaultBatchConfig getFileRepayConfig() {
        return fileRepayConfig;
    }

    public void setFileRepayConfig(DefaultBatchConfig fileRepayConfig) {
        this.fileRepayConfig = fileRepayConfig;
    }
}
